#ifndef _TREASURE
#define _TREASURE

#include <iostream>

#define NB_TREASURE 7

using namespace std;

class Treasure
{
public:
    unsigned int type_treasure;
    unsigned int position_x;
    unsigned int position_y;
    bool find;

    Treasure(const unsigned int & type=0,const unsigned int & x=0,const unsigned int & y=0,const bool & f=false);

    void set_all(const unsigned int & type,const unsigned int & x,const unsigned int & y,const bool & f=false);

    friend ostream& operator << (ostream& ost,const Treasure & t)
    {
        return ost << "Type : " << t.type_treasure << " X : " << t.position_x << " Y : " << t.position_y;
    };
};

#endif